From e7f6dc6877bbb3569a213e7fab7999574e3a1d42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Mon, 9 Jul 2007 12:00:47 +0000 Subject: [PATCH] (fit-window-to-buffer): Remove setting of window-min-height to 1 as enlarge-window uses the value to resize/shrink windows other than WINDOW if needed. --- lisp/window.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/window.el b/lisp/window.el index 921d84d6e7d..216e89249c6 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -645,10 +645,7 @@ header-line." ;; desired-height lines, constrained by MIN-HEIGHT and MAX-HEIGHT. (- (max (min desired-height max-height) (or min-height window-min-height)) - window-height)) - ;; We do our own height checking, so avoid any restrictions due to - ;; window-min-height. - (window-min-height 1)) + window-height))) ;; Don't try to redisplay with the cursor at the end ;; on its own line--that would force a scroll and spoil things. -- 2.30.2